package com.woniuxy.project115.kaer.tenant.controller;


import com.woniuxy.project115.kaer.commons.util.Result;
import com.woniuxy.project115.kaer.tenant.entity.ServiceType;
import com.woniuxy.project115.kaer.tenant.service.ServiceTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author HuH
 * @since 2025年02月17日
 */
@RestController
@RequestMapping("/serviceType")
@Api(tags = "服务类型接口")
public class ServiceTypeController {
    @Resource
    private ServiceTypeService serviceTypeService;

    @PostMapping("/getServiceType")
    @ApiOperation("获取服务类型")
    public Result getServiceType() throws Exception{
        List<ServiceType> serviceType = serviceTypeService.getServiceType();
        return Result.succeed("success", null, serviceType);
    }

}

